/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.mer.entity.WeddingGiftDetail;
import com.kaaction.modules.mer.dao.WeddingGiftDetailDao;

/**
 * 礼金记账明细Service
 * @author huanghaiming
 * @version 2017-05-24
 */
@Service
@Transactional(readOnly = true)
public class WeddingGiftDetailService extends CrudService<WeddingGiftDetailDao, WeddingGiftDetail> {

	public WeddingGiftDetail get(String id) {
		return super.get(id);
	}
	
	public List<WeddingGiftDetail> findList(WeddingGiftDetail weddingGiftDetail) {
		return super.findList(weddingGiftDetail);
	}
	
	public Page<WeddingGiftDetail> findPage(Page<WeddingGiftDetail> page, WeddingGiftDetail weddingGiftDetail) {
		return super.findPage(page, weddingGiftDetail);
	}
	
	@Transactional(readOnly = false)
	public void save(WeddingGiftDetail weddingGiftDetail) {
		super.save(weddingGiftDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(WeddingGiftDetail weddingGiftDetail) {
		super.delete(weddingGiftDetail);
	}

	public List<Map<String,Object>> selWeddingGiftDetail(WeddingGiftDetail weddingGiftDetail) {
		return super.dao.selWeddingGiftDetail(weddingGiftDetail);
	}

	public int selMoneyTotal(WeddingGiftDetail weddingGiftDetail) {
		return super.dao.selMoneyTotal(weddingGiftDetail);
	}
	
}